Platform Explorer / Nuxeo Platform 5.8

Contribution org.nuxeo.ecm.social.user.relationship.layout--layouts

This contribution is part of XML component org.nuxeo.ecm.social.user.relationship.layout inside nuxeo-user-relationship-5.8.jar

Extension Point

Extension point layouts of component WebLayoutManager.

Contributed Items

  • <layout name="userprofile">
          <templates>
            <template mode="any">/layouts/layout_default_template.xhtml
            </template>
          </templates>
    
          <rows>
            <row>
              <widget>avatar</widget>
            </row>
            <row>
              <widget>birthdate</widget>
            </row>
            <row>
              <widget>phonenumber</widget>
            </row>
            <row>
              <widget>gender</widget>
            </row>
            <row>
              <widget>publicprofile</widget>
            </row>
          </rows>
        </layout>
  • <layout name="summary_user_profile_layout">
          <templates>
            <template mode="any">/layouts/layout_summary_template.xhtml</template>
          </templates>
          <rows>
            <row>
              <widget>summary_user_profile</widget>
            </row>
            <row>
              <widget>summary_user_relationship</widget>
            </row>
          </rows>
        </layout>
  • <layout name="user_relationship">
          <templates>
            <template mode="any">/layouts/layout_div_template.xhtml</template>
          </templates>
          <rows>
            <row>
              <widget>user_relationship_add</widget>
            </row>
            <row>
              <widget>user_relationship_contacts</widget>
            </row>
          </rows>
        </layout>
  • <layout name="relationships_listing">
          <templates>
            <template mode="any">/layouts/layout_listing_template.xhtml</template>
          </templates>
          <columns>
            <column>
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">false</property>
                <property name="columnStyleClass">pictureColumn</property>
              </properties>
              <widget>user_relationship_avatar</widget>
            </column>
            <column>
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">false</property>
              </properties>
              <widget>user_relationship_username</widget>
            </column>
            <column>
              <properties mode="any">
                <property name="useFirstWidgetLabelAsColumnHeader">false</property>
              </properties>
              <widget>listing_user_relationship_add</widget>
            </column>
          </columns>
        </layout>

XML Source

<extension point="layouts" target="org.nuxeo.ecm.platform.forms.layout.WebLayoutManager">

    <!-- override userprofile layout -->
    <layout name="userprofile">
      <templates>
        <template mode="any">/layouts/layout_default_template.xhtml
        </template>
      </templates>

      <rows>
        <row>
          <widget>avatar</widget>
        </row>
        <row>
          <widget>birthdate</widget>
        </row>
        <row>
          <widget>phonenumber</widget>
        </row>
        <row>
          <widget>gender</widget>
        </row>
        <row>
          <widget>publicprofile</widget>
        </row>
      </rows>
    </layout>

    <!-- override summary layout from user_profile -->
    <layout name="summary_user_profile_layout">
      <templates>
        <template mode="any">/layouts/layout_summary_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>summary_user_profile</widget>
        </row>
        <row>
          <widget>summary_user_relationship</widget>
        </row>
      </rows>
    </layout>

    <layout name="user_relationship">
      <templates>
        <template mode="any">/layouts/layout_div_template.xhtml</template>
      </templates>
      <rows>
        <row>
          <widget>user_relationship_add</widget>
        </row>
        <row>
          <widget>user_relationship_contacts</widget>
        </row>
      </rows>
    </layout>

    <layout name="relationships_listing">
      <templates>
        <template mode="any">/layouts/layout_listing_template.xhtml</template>
      </templates>
      <columns>
        <column>
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">false</property>
            <property name="columnStyleClass">pictureColumn</property>
          </properties>
          <widget>user_relationship_avatar</widget>
        </column>
        <column>
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">false</property>
          </properties>
          <widget>user_relationship_username</widget>
        </column>
        <column>
          <properties mode="any">
            <property name="useFirstWidgetLabelAsColumnHeader">false</property>
          </properties>
          <widget>listing_user_relationship_add</widget>
        </column>
      </columns>
    </layout>
  </extension>